package com.jiyinit.web.core.video.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jiyinit.core.framework.base.paging.PagingResult;
import com.jiyinit.web.core.video.dao.TabCoreMobileRoleDao;
import com.jiyinit.web.core.video.dto.MobileRoleRequest;
import com.jiyinit.web.core.video.entity.TabCoreMobileRoleEntity;

@Service("core.mobileRoleServiceImpl")
public class MobileRoleServiceImpl {
	
	@Resource(name = "core.tabCoreMobileRoleDao")
	private TabCoreMobileRoleDao tabCoreMobileRoleDao;
	
	
	/**
     * 多条件分页查询
     * @param request
     * @return
     */
	public PagingResult<TabCoreMobileRoleEntity> findForPage(MobileRoleRequest request){
        return tabCoreMobileRoleDao.findForPage(request);
    }
	
	/**
	 * id查询
     * @param id
     * @return
     */
	public TabCoreMobileRoleEntity findOne(Integer id){
		return tabCoreMobileRoleDao.findOne(id);
	}
	
	/**
	 * 添加
     * @param entity
     * @return
     */
	public int add(TabCoreMobileRoleEntity entity){
		return tabCoreMobileRoleDao.add(entity);
	}
	
	/**
	 * 修改
     * @param entity
     * @return
     */
	public int update(TabCoreMobileRoleEntity entity){
		return tabCoreMobileRoleDao.update(entity);
	}
	
	/**
	 * 删除
     * @param id
     * @return
     */
	public int delete(Integer id){
		return tabCoreMobileRoleDao.delete(id);
	}
	
}
